<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/23 0023
 * Time: 13:42
 */

namespace app\common\model\mall;


use app\common\model\TimeModel;
use think\facade\Db;

class GroupMaster extends TimeModel
{
    public static function onAfterInsert($data){

        //$self = new static();
        $article = self::withoutGlobalScope()->find($data->id);

        $article->withoutGlobalScope()->where('id',$data->id)->save(['app_id'=>self::get_appId()]);

    }
}